package com.firewolf.spring.task;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 第二种方式：
 * 使用Quartz的任务管理，继承QuartzJobBean类
 * @author liuxing
 *
 */
public class SpringTask2 extends QuartzJobBean{

	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		System.out.println("My Task");
	}

}
